#ifndef QST_AHRS_H
#define QST_AHRS_H

#include "stdint.h"


/**
 * @brief : algorithm initial function.
 * @param[in] : none
 * @param[out] : none
 * @return: 1
 */
extern int qst_vqf_init(float dt);

//extern int qmi8658_read_reg(unsigned char reg, unsigned char *buf, unsigned short len);
void init_state_recognition(unsigned char (*read)(unsigned char, unsigned char *, unsigned short));


/**
 * @brief : algorithm entry
 * @param[in] : double acc[3]        acc data  m/s/s    9.8 = 1g  50HZ  direction (right-x, front-y, up-z)
 * @param[in] : double gyro[3]       gyro data rad/s    50HZ
 * @param[in] : double gyro[3]       mag data  UT
 * @param[out] : none
 * @return: is_update = 1 else = 0
 */
extern char vqf_enter(float acc[3], float gyr[3], float eul_res_and[3]);


#endif



